﻿using ProtoBuf;

namespace ToyChat.BuiltinModules
{
    /// <summary>
    /// This message is used to send a list of <see cref="ChannelDescriptor"/>s to a client
    /// </summary>
    [ProtoContract(Name = "Core.ChannelList")]
    public class ChannelList
    {
        /// <summary>
        /// Gets or Sets the actual channel descriptors
        /// </summary>
        [ProtoMember(1, IsRequired = false)]
        public ChannelDescriptor[] ChannelDescriptors { get; set; }
    }
}